const judging = (str = '') => {
    // console.log(str)
    let _OBJ = {}
    const NUM = /^1\d{10}$/
    const NUMBER = /^[\u4e00-\u9fa5]{1}\w-\w{5}$/
    const NAME = /^[\u4e00-\u9fa5]{2,4}$/
    switch (true) {
        case '':
            _OBJ = {
                code: false
            }
            break
        case NUM.test(str):
            _OBJ = {
                code: true,
                obj: { phone: str }
            }
            break
        case NUMBER.test(str):
            _OBJ = {
                code: true,
                obj: { carId: str }

            }
            break
        case NAME.test(str):
            _OBJ = {
                code: true,
                obj: { name: str }
            }
            break
        default:
            _OBJ = {
                code: false
            }
    }
    return _OBJ
}
export default judging